<template>
  <mt-swipe :auto="4000">
    <!-- 谁使用这个轮播图组件，谁为我们传递数据，父组件向子组件传值 -->
    <mt-swipe-item v-for="item in lunbotuList" :key="item.id">
      <img :src="item.img" alt :class="{full:isfull}" />
    </mt-swipe-item>
  </mt-swipe>
</template>
<script>
export default {
  props: ["lunbotuList", "isfull"]
};
</script>
<style lang="less" scoped>
.mint-swipe {
  height: 200px;
  text-align: center;
  img {
    height: 100%;
  }
}

.full {
  width: 100%;
}
</style>